<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>蓝点工作室报名</title>
<link rel="stylesheet" type="text/css" href='<c:url value="/jsps/user/css/stu_regist.css"></c:url>'/>
 </head>
<body>
	<%-- 
  	1，显示errors-->字段错误
  	2，显示异常信息
  	3，回显
   --%>
	<h1>
		<a href="<c:url value='/ArticleServlet1?method=findAll'/>">蓝点工作室</a>报名
	</h1>
	<p style="color: red; font-weight: 900">${msg }</p>
	<form action="<c:url value='/StuServlet'/>" method="post">
		<!-- 调用StuServlet中的regist方法 -->
		<input type="hidden" name="method" value="regist" /> 
		学号：<input type="text" name="stuid" value="${form.stuid }" /> 
			<span style="color: red; font-weight: 900">${errors.stuid }</span> 
			<br /><br />
		姓名：<input type="text" name="stuname" value="${form.stuname }" /> <span
			style="color: red; font-weight: 900">${errors.stuname }</span> <br /><br />
		班级：<input type="text" name="stuclass" value="${form.stuclass }" /> <span
			style="color: red; font-weight: 900">${errors.stuclass }</span> <br /><br />
		专业：<input type="text" name="major" value="${form.major }" /> <span
			style="color: red; font-weight: 900">${errors.major }</span> <br /><br />
		&nbsp;&nbsp;
		<input type="submit" class="submit" id="submit" value="点击报名"/>


	</form>
</body>
</html>